package com.inxedu.os.edu.service.images.Impl.Images;

import com.inxedu.os.edu.dao.Images.EduWebsiteImagesMapper;
import com.inxedu.os.edu.dao.Images.EduWebsiteImagesTypeMapper;
import com.inxedu.os.edu.dao.Images.WebsiteImagesMapper;
import com.inxedu.os.edu.pojo.Images.EduWebsiteImagess;
import com.inxedu.os.edu.pojo.EduWebsiteImagesType;
import com.inxedu.os.edu.pojo.EduWebsiteImagesTypeExample;
import com.inxedu.os.edu.service.images.ImagesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ImagesImpl implements ImagesService {
    @Autowired
    EduWebsiteImagesMapper eduWebsiteImagesMapper;
    @Autowired
    EduWebsiteImagesTypeMapper eduWebsiteImagesTypeMapper;
    @Autowired
    WebsiteImagesMapper websiteImagesMapper;

    @Override
    public List<Map<String, Object>> getImageslist(EduWebsiteImagess image) {
        return eduWebsiteImagesMapper.getImageslist(image);
    }

    //图片类型
    @Override
    public List<EduWebsiteImagesType> getimagesType() {
        EduWebsiteImagesTypeExample example = new EduWebsiteImagesTypeExample();
        return eduWebsiteImagesTypeMapper.selectByExample(example);
    }

    @Override
    public List<Map<String, Object>> queryImagePage(EduWebsiteImagess image) {
        return eduWebsiteImagesMapper.queryImagePage(image);
    }


    @Override
    public EduWebsiteImagess getImagesById(int id) {
        return eduWebsiteImagesMapper.getImagesById(id);
    }



    @Override
    public int delImages(int id) {
        return eduWebsiteImagesMapper.delImages(id);
    }


}
